/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package corba;

/**
 *
 * @author benjamin
 */
public class IHM_Station extends javax.swing.JFrame {

    /**
     * Creates new form IHM_Client
     */
    public IHM_Station() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jNumAdh = new javax.swing.JTextField();
        jNomAdh = new javax.swing.JTextField();
        jPrenomAdh = new javax.swing.JTextField();
        jAdresseAdh = new javax.swing.JTextField();
        jCBAdh = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        newAdhCheck = new javax.swing.JCheckBox();
        connectAdhBut = new javax.swing.JButton();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        jTabDepotInit = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        libZoneDestField = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        n = new javax.swing.JTextField();
        verifDestBut = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jListAdhTrouves = new javax.swing.JList();
        jLabel8 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        infoColisDepose = new javax.swing.JTextArea();
        numCasierField = new javax.swing.JLabel();
        choisirDestBut = new javax.swing.JButton();
        jTabRetraitFinal = new javax.swing.JPanel();
        retirerColisAdhBut = new javax.swing.JButton();
        jScrollPane3 = new javax.swing.JScrollPane();
        jListColisLivres = new javax.swing.JList();
        jPanel3 = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jNumPrest = new javax.swing.JTextField();
        connectPrestBut = new javax.swing.JButton();
        jTabbedPane3 = new javax.swing.JTabbedPane();
        jTabDepotTransport = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        numColisDepotField = new javax.swing.JTextField();
        numCasierDepotField = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        deposerColisTranspBut = new javax.swing.JButton();
        messageFinDepotField = new javax.swing.JLabel();
        jTabRetraitTransport = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        codeRetraitSaisieField = new javax.swing.JTextField();
        retirerColisTranspBut = new javax.swing.JButton();
        infoTransportField = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel2.setLabelFor(jNumAdh);
        jLabel2.setText("Numéro adhérent :");

        jNumAdh.setToolTipText("");
        jNumAdh.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jNumAdhActionPerformed(evt);
            }
        });

        jNomAdh.setEnabled(false);

        jPrenomAdh.setEnabled(false);

        jAdresseAdh.setEnabled(false);

        jCBAdh.setEnabled(false);

        jLabel13.setLabelFor(jPrenomAdh);
        jLabel13.setText("CB :");

        jLabel12.setLabelFor(jPrenomAdh);
        jLabel12.setText("Adresse :");

        jLabel5.setLabelFor(jPrenomAdh);
        jLabel5.setText("Prénom :");

        jLabel4.setLabelFor(jNomAdh);
        jLabel4.setText("Nom :");

        newAdhCheck.setText("Première fois");
        newAdhCheck.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                newAdhCheckActionPerformed(evt);
            }
        });

        connectAdhBut.setText("Se connecter");
        connectAdhBut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                connectAdhButActionPerformed(evt);
            }
        });

        jTabbedPane2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(102, 102, 102), 1, true));

        jLabel6.setText("Libellé de la zone du destinataire : ");

        libZoneDestField.setEnabled(false);
        libZoneDestField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                libZoneDestFieldActionPerformed(evt);
            }
        });

        jLabel7.setText("Nom du destinataire :");

        n.setEnabled(false);

        verifDestBut.setText("Vérifier");
        verifDestBut.setToolTipText("");
        verifDestBut.setEnabled(false);
        verifDestBut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                verifDestButActionPerformed(evt);
            }
        });

        jListAdhTrouves.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jListAdhTrouves.setEnabled(false);
        jScrollPane1.setViewportView(jListAdhTrouves);

        jLabel8.setText("Adhérents trouvés :");

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Informations colis"));

        infoColisDepose.setColumns(20);
        infoColisDepose.setRows(5);
        infoColisDepose.setAutoscrolls(false);
        infoColisDepose.setEnabled(false);
        jScrollPane2.setViewportView(infoColisDepose);

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 393, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(numCasierField))
                .addContainerGap(21, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
                .addComponent(numCasierField)
                .addContainerGap())
        );

        choisirDestBut.setText("Choisir");
        choisirDestBut.setEnabled(false);

        javax.swing.GroupLayout jTabDepotInitLayout = new javax.swing.GroupLayout(jTabDepotInit);
        jTabDepotInit.setLayout(jTabDepotInitLayout);
        jTabDepotInitLayout.setHorizontalGroup(
            jTabDepotInitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jTabDepotInitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jTabDepotInitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jTabDepotInitLayout.createSequentialGroup()
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jTabDepotInitLayout.createSequentialGroup()
                        .addGroup(jTabDepotInitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)
                        .addGroup(jTabDepotInitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(libZoneDestField)
                            .addComponent(n, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(46, 46, 46)
                        .addComponent(verifDestBut)
                        .addGap(45, 45, 45)))
                .addGroup(jTabDepotInitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8)
                    .addGroup(jTabDepotInitLayout.createSequentialGroup()
                        .addGap(61, 61, 61)
                        .addComponent(choisirDestBut)))
                .addGap(35, 35, 35))
        );
        jTabDepotInitLayout.setVerticalGroup(
            jTabDepotInitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jTabDepotInitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jTabDepotInitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jTabDepotInitLayout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(choisirDestBut))
                    .addGroup(jTabDepotInitLayout.createSequentialGroup()
                        .addGroup(jTabDepotInitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7)
                            .addGroup(jTabDepotInitLayout.createSequentialGroup()
                                .addComponent(libZoneDestField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jTabDepotInitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(n, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(verifDestBut)
                                    .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(20, 20, 20)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(21, Short.MAX_VALUE))
        );

        jTabbedPane2.addTab("Deposer un colis", jTabDepotInit);

        retirerColisAdhBut.setText("Retirer mes colis");
        retirerColisAdhBut.setEnabled(false);

        jListColisLivres.setEnabled(false);
        jScrollPane3.setViewportView(jListColisLivres);

        javax.swing.GroupLayout jTabRetraitFinalLayout = new javax.swing.GroupLayout(jTabRetraitFinal);
        jTabRetraitFinal.setLayout(jTabRetraitFinalLayout);
        jTabRetraitFinalLayout.setHorizontalGroup(
            jTabRetraitFinalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jTabRetraitFinalLayout.createSequentialGroup()
                .addGroup(jTabRetraitFinalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jTabRetraitFinalLayout.createSequentialGroup()
                        .addGap(307, 307, 307)
                        .addComponent(retirerColisAdhBut, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jTabRetraitFinalLayout.createSequentialGroup()
                        .addGap(242, 242, 242)
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 283, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(254, Short.MAX_VALUE))
        );
        jTabRetraitFinalLayout.setVerticalGroup(
            jTabRetraitFinalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jTabRetraitFinalLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(retirerColisAdhBut)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane2.addTab("Retirer un colis", jTabRetraitFinal);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jNumAdh, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(newAdhCheck)
                            .addComponent(connectAdhBut))
                        .addGap(21, 21, 21)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel4)
                                    .addComponent(jLabel5))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jPrenomAdh, javax.swing.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE)
                                    .addComponent(jNomAdh)))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jLabel13)
                                .addGap(18, 18, 18)
                                .addComponent(jCBAdh, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(31, 31, 31)
                        .addComponent(jLabel12)
                        .addGap(18, 18, 18)
                        .addComponent(jAdresseAdh, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 786, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(30, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jNumAdh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(newAdhCheck)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(connectAdhBut))
                    .addComponent(jAdresseAdh, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jNomAdh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4))
                        .addGap(6, 6, 6)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jPrenomAdh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jCBAdh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel13))))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Adhérents", jPanel2);

        jLabel3.setLabelFor(jNumAdh);
        jLabel3.setText("Numéro Prestataire :");

        jNumPrest.setToolTipText("");
        jNumPrest.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jNumPrestActionPerformed(evt);
            }
        });

        connectPrestBut.setText("Se connecter");
        connectPrestBut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                connectPrestButActionPerformed(evt);
            }
        });

        jTabbedPane3.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        jTabDepotTransport.setVerifyInputWhenFocusTarget(false);

        jLabel9.setText("Numéro du colis à déposer :");

        numColisDepotField.setEnabled(false);

        numCasierDepotField.setEditable(false);

        jLabel10.setText("Déposez dans le casier :");

        deposerColisTranspBut.setText("Deposer");
        deposerColisTranspBut.setEnabled(false);
        deposerColisTranspBut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deposerColisTranspButActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jTabDepotTransportLayout = new javax.swing.GroupLayout(jTabDepotTransport);
        jTabDepotTransport.setLayout(jTabDepotTransportLayout);
        jTabDepotTransportLayout.setHorizontalGroup(
            jTabDepotTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jTabDepotTransportLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jTabDepotTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jTabDepotTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jTabDepotTransportLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(messageFinDepotField, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jTabDepotTransportLayout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addGroup(jTabDepotTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(numCasierDepotField)
                            .addComponent(numColisDepotField, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(44, 44, 44)
                        .addComponent(deposerColisTranspBut, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(266, Short.MAX_VALUE))
        );
        jTabDepotTransportLayout.setVerticalGroup(
            jTabDepotTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jTabDepotTransportLayout.createSequentialGroup()
                .addGap(16, 16, 16)
                .addGroup(jTabDepotTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(numColisDepotField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(deposerColisTranspBut))
                .addGap(18, 18, 18)
                .addGroup(jTabDepotTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(numCasierDepotField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10))
                .addGap(18, 18, 18)
                .addComponent(messageFinDepotField, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(34, Short.MAX_VALUE))
        );

        jTabbedPane3.addTab("Deposer un colis", jTabDepotTransport);

        jLabel11.setText("Code de retrait :");

        codeRetraitSaisieField.setEnabled(false);

        retirerColisTranspBut.setText("Retirer");
        retirerColisTranspBut.setEnabled(false);
        retirerColisTranspBut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                retirerColisTranspButActionPerformed(evt);
            }
        });

        infoTransportField.setEditable(false);

        javax.swing.GroupLayout jTabRetraitTransportLayout = new javax.swing.GroupLayout(jTabRetraitTransport);
        jTabRetraitTransport.setLayout(jTabRetraitTransportLayout);
        jTabRetraitTransportLayout.setHorizontalGroup(
            jTabRetraitTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jTabRetraitTransportLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jTabRetraitTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(infoTransportField)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jTabRetraitTransportLayout.createSequentialGroup()
                        .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(codeRetraitSaisieField, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(46, 46, 46)
                        .addComponent(retirerColisTranspBut, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(392, Short.MAX_VALUE))
        );
        jTabRetraitTransportLayout.setVerticalGroup(
            jTabRetraitTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jTabRetraitTransportLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jTabRetraitTransportLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(codeRetraitSaisieField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(retirerColisTranspBut))
                .addGap(33, 33, 33)
                .addComponent(infoTransportField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(60, Short.MAX_VALUE))
        );

        jTabbedPane3.addTab("Retirer les colis", jTabRetraitTransport);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTabbedPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 806, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jNumPrest, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(82, 82, 82)
                        .addComponent(connectPrestBut)))
                .addContainerGap(21, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jNumPrest, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3)
                    .addComponent(connectPrestBut))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(217, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Transporteurs", jPanel3);

        jLabel1.setBackground(new java.awt.Color(255, 255, 255));
        jLabel1.setFont(new java.awt.Font("LCD", 0, 18)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(102, 102, 255));
        jLabel1.setText("Bienvenue");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 842, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTabbedPane1)
                .addContainerGap())
        );

        jTabbedPane1.getAccessibleContext().setAccessibleName("mainTab");

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jNumAdhActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumAdhActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jNumAdhActionPerformed

    private void connectAdhButActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_connectAdhButActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_connectAdhButActionPerformed

    private void newAdhCheckActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newAdhCheckActionPerformed
        if(newAdhCheck.isSelected()) {
            jNomAdh.setEnabled(true);
            jPrenomAdh.setEnabled(true);
            jAdresseAdh.setEnabled(true);
            jCBAdh.setEnabled(true);
        }else {
            jNomAdh.setEnabled(false);
            jPrenomAdh.setEnabled(false);
            jAdresseAdh.setEnabled(false);
            jCBAdh.setEnabled(false);
        }
    }//GEN-LAST:event_newAdhCheckActionPerformed

    private void jNumPrestActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jNumPrestActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jNumPrestActionPerformed

    private void connectPrestButActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_connectPrestButActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_connectPrestButActionPerformed

    private void libZoneDestFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_libZoneDestFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_libZoneDestFieldActionPerformed

    private void deposerColisTranspButActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deposerColisTranspButActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_deposerColisTranspButActionPerformed

    private void verifDestButActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_verifDestButActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_verifDestButActionPerformed

    private void retirerColisTranspButActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_retirerColisTranspButActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_retirerColisTranspButActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(IHM_Station.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(IHM_Station.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(IHM_Station.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(IHM_Station.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new IHM_Station().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton choisirDestBut;
    private javax.swing.JTextField codeRetraitSaisieField;
    private javax.swing.JButton connectAdhBut;
    private javax.swing.JButton connectPrestBut;
    private javax.swing.JButton deposerColisTranspBut;
    private javax.swing.JTextArea infoColisDepose;
    private javax.swing.JTextField infoTransportField;
    private javax.swing.JTextField jAdresseAdh;
    private javax.swing.JTextField jCBAdh;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JList jListAdhTrouves;
    private javax.swing.JList jListColisLivres;
    private javax.swing.JTextField jNomAdh;
    private javax.swing.JTextField jNumAdh;
    private javax.swing.JTextField jNumPrest;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JTextField jPrenomAdh;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JPanel jTabDepotInit;
    private javax.swing.JPanel jTabDepotTransport;
    private javax.swing.JPanel jTabRetraitFinal;
    private javax.swing.JPanel jTabRetraitTransport;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JTabbedPane jTabbedPane3;
    private javax.swing.JTextField libZoneDestField;
    private javax.swing.JLabel messageFinDepotField;
    private javax.swing.JTextField n;
    private javax.swing.JCheckBox newAdhCheck;
    private javax.swing.JTextField numCasierDepotField;
    private javax.swing.JLabel numCasierField;
    private javax.swing.JTextField numColisDepotField;
    private javax.swing.JButton retirerColisAdhBut;
    private javax.swing.JButton retirerColisTranspBut;
    private javax.swing.JButton verifDestBut;
    // End of variables declaration//GEN-END:variables
}
